package Csp.Model;

import java.util.HashSet;
import java.util.Set;

public class Variable {
	
	private Set<Integer> domain;
	private int id;
	
	public Variable(int id){
		this.id = id;
	}
	
	public Variable(int id, int value){
		this.id = id;
		this.domain = new HashSet<Integer>();
		domain.add(value);
	}
	
	public Variable(int id, Set<Integer> domain){
		this.id = id;
		this.domain = domain;
	}
	
	public Set<Integer> getDomain() {
		return domain;
	}
	
	public void setDomain(Set<Integer> domain) {
		this.domain = domain;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
